// 取地址操作符 &
#include <iostream>
using namespace std;

int main() {
    float x = 1;
    float y = 2;
    int i = 3;
    int j = 4;
    double q = 5;
    double r = 6;

    cout.setf(ios::fixed);
    cout.precision(7);

    cout << "x的值是 " << x << ", 地址是 " << &x << "\n";
    cout << "y的值是 " << y << ", 地址是 " << &y << "\n";
    cout << "i的值是 " << i << ", 地址是 " << &i << "\n";
    cout << "j的值是 " << j << ", 地址是 " << &j << "\n";

    cout.precision(14);
    cout << "q的值是 " << q << ", 地址是 " << &q << "\n";
    cout << "r的值是 " << r << ", 地址是 " << &r << "\n";
}